VT-d: clean up dynamic page mapping
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 4 Jan 2010 09:06:02 +0000 (09:06 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 4 Jan 2010 09:06:02 +0000 (09:06 +0000)
commit1c707e89c23fb9810f1e5e42510b79a5f3973d5b
tree99bfae88bc7921e03819069730f0e806c1c917a9
parentf3c8a24596ad166de0b62e881070d110850c5f37
VT-d: clean up dynamic page mapping

Before dynamic VT-d page table for hvm guest (changeset 20152),
need_iommu is only used for PV guest. And it maps pages into VT-d for
PV guest in get_page_type and grant table.  Now need_iommu is used
both hvm and pv guests, this patch makes those code still only for PV
guest, because it needn't to map pages there for hvm domain.

Signed-off-by: Weidong Han <Weidong.han@intel.com>
xen/arch/x86/mm.c
xen/common/grant_table.c